/*************************************************************
*
* DS_LIST.CPP
* 
* Linked list container
*************************************************************/

#include "ap\ap_comm.h"
#include "ds_val_list.h"
#include "ds_smart_ptr.h"

#ifdef DS_DBG_CHECK_SHARED_PTR
ds::VAL_LIST<dsSHARED_COUNTER> *dbgPoolPtr = NULL;
#endif

ds::VAL_LIST<dsSHARED_COUNTER>* dsSHARED_COUNTER::GetPool()
{
   static ds::VAL_LIST<dsSHARED_COUNTER> *pool = NULL;

   if (!pool) {
      pool = apNEW ds::VAL_LIST<dsSHARED_COUNTER>(AP_CL);
#ifdef DS_DBG_CHECK_SHARED_PTR
      dbgPoolPtr = pool;
#endif
   }

   return pool;
}

//
// End-of-file DS_LIST.CPP
//
